import request from '@/utils/request'
const baseUrl = process.env.VUE_APP_TMS_CONSOLE_HOST
// 车队长列表
export function driverMasterList(data) {
  return request({
    url: `${baseUrl}/api/v1/tms-driver-master/search`,
    method: 'post',
    data
  })
}

// 车队长详情
export function driverMasterDetails(id) {
  return request({
    url: `${baseUrl}/api/v1/tms-driver-master/${id}`,
    method: 'get'
  })
}

// 车队长审核
export function driverMasterAudit(data) {
  return request({
    url: `${baseUrl}/api/v1/tms-driver-master/review`,
    method: 'post',
    data
  })
}

// 删除车队长
export function driverMasterDelete(data) {
  return request({
    url: `${baseUrl}/api/v1/tms-driver-master/batchDelete`,
    method: 'post',
    data
  })
}

// 新增车队长
export function driverMasterAdd(data) {
  return request({
    url: `${baseUrl}/api/v1/tms-driver-master/add`,
    method: 'post',
    data
  })
}
